package org.example.petitionplatformsystem.converter;

import org.example.petitionplatformsystem.dao.model.Users;
import org.example.petitionplatformsystem.dto.UserDTO.UsersRegisterDTO;

public class UsersConverter {
    public static Users converterRegisterUsers(UsersRegisterDTO usersRegisterDTO){
        Users users = new Users();
        users.setUsername(usersRegisterDTO.getUsername());
        users.setPassword(usersRegisterDTO.getPassword());
        users.setPhoneNumber(usersRegisterDTO.getPhoneNumber());
        users.setRole(usersRegisterDTO.getRole());
        return users;
    }
}
